package org.hxyjs.dao;

import org.hxyjs.entity.NewsRecord;
import org.hxyjs.page.PageInfo;

import java.util.List;

public interface NewsRecordDao {
    public List<NewsRecord> getNewsRecordByPage(PageInfo pageInfo) throws Exception;

    public List<NewsRecord> getAllNewsRecords() throws Exception;

    public NewsRecord getNewsRecordByNewno(String newno) throws Exception;

    //增删改的返回值都是整数
    Integer deleteNewsRecordByNewno(String newno) throws Exception;

    Integer updateNewsRecordByNewno(NewsRecord newsRecord) throws Exception;

    Integer addNewsRecord(NewsRecord newsRecord) throws Exception;




}
